package com.example.demo.config;

import org.apache.shardingsphere.api.sharding.ShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.standard.PreciseShardingValue;
import org.apache.shardingsphere.api.sharding.standard.RangeShardingValue;

import java.util.Collection;

/**
 * @author hulei
 * @version 1.0
 * @date 2022-01-11 9:52
 * @target
 */
public interface StandardShardingAlgorithm<T extends Comparable<?>> extends ShardingAlgorithm {

    String doSharding(Collection<String> var1, PreciseShardingValue<T> var2);

    Collection<String> doSharding(Collection<String> var1, RangeShardingValue<T> var2);


}
